home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC-SIG: World of Education
/
PC-SiG's World of Education.iso
/
run
/
2602
/
filter.alg
< prev
next >
Wrap
Text File
|
1990-08-20
|
614b
|
33 lines
{ FILTER - Plots FFT results for data from an ASCII file }
step=1;
label="Finite Impulse Response Filter Coefficients";
ylabel="";
xlabel="";
file = "firr.dat";
rawdata = read & scaley(rawdata);
plot(rawdata);
{ Perform FFT on raw data }
fft(rawdata);
pause; { pause when FFT done }
label = "FFT Real Part";
xlabel = "Frequency";
ylabel = "";
erase;
plot(fftre(t));
pause;
label = "FFT Imaginary Part";
erase;
plot(fftim(t));
pause;
label = "FFT Magnitude";
erase;
plot(fftmag(t));
pause;
label = "FFT Phase";
{scaley(fftphs(t));}
ymin=-2; ymax=2;
erase;
plot(fftphs(t));